<template>
  <div class="right">
    <tab-menu-right
      v-for="item in newgame"
      :key="item.id"
      :pic="item.geme_pic"
      :name="item.game_name"
      :id='item.id'
    ></tab-menu-right>
  </div>
</template>

<script>
import TabMenuRight from "@/components/TabMenuRight.vue";
export default {
  components: { TabMenuRight },
  data() {
    return {
      newgame: [],
    };
  },
  mounted() {
    this.$http.indexApi.game_name({ page: 2,pagesize:10 }).then((res) => {
      console.log(res);
      this.newgame = res.data.data;
    });
  },
};
</script>

<style lang="scss" scoped>
.right{
  display: flex;
  justify-content: space-between;
  background-color: #fff;
}
</style>